<?php

namespace App\Http;

use App\Http\Middleware\AdminAuthMiddleware;
use App\Http\Middleware\AppletAuthMiddleware;
use App\Http\Middleware\RunLogMiddleware;
use App\Http\Middleware\StoreAuthMiddleware;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
use Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull;

class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        ConvertEmptyStringsToNull::class,
    ];

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
        ],

        'api' => [
        ],
    ];

    /**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
    protected $routeMiddleware = [
        'adminAuth' => AdminAuthMiddleware::class,
        'appletAuth' => AppletAuthMiddleware::class,
        'storeAuth' => StoreAuthMiddleware::class,
        'runLog' => RunLogMiddleware::class,
    ];
}
